package com.tomehay.termprojectmanage_server.service;

import com.tomehay.termprojectmanage_server.pojo.Model.Student;
import com.tomehay.termprojectmanage_server.pojo.Model.StudentGroup;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tomehay.termprojectmanage_server.pojo.VO.GroupMembersVO;
import com.tomehay.termprojectmanage_server.pojo.VO.ResultVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tomehay
 * @since 2023-06-20
 */
public interface StudentGroupService extends IService<StudentGroup> {

    ResultVO<List<GroupMembersVO>> GetGroupsByCourseId(int courseId,int batchId);

    ResultVO<int[]> GetBatches();

    ResultVO<List<Student>> SelectUnGrouped(int courseId,int batchId);

    ResultVO<Void> CreateStudentGroup(int[] students, int batchId, int course_id, int leader_id);

    ResultVO<Void> DeleteStudentGroup(int groupId);

    ResultVO<GroupMembersVO> GetGroupsById(int id);
}
